#ifndef HELPER_H
#define HELPER_H

#include "acceptor.h"
#include "socket.h"

// 辅助测试访问私有成员的类
class AcceptorTestHelper {
public:
    static void invokeHandleRead(Acceptor& acceptor) {
        acceptor.handleRead();
    }

    static int getListenFd(Acceptor& acceptor) {
        return acceptor.listenSocket_->fd();
    }
};

#endif